package com.nbsaas.boot;

import com.alibaba.fastjson2.JSON;

public class ScriptFileTest {

    public static void main(String[] args) throws Exception {
        FileScriptEngine manager = new FileScriptEngine();
        String scriptPath = "userInfo.groovy";

            Object result = manager.execute(scriptPath);
            System.out.println("脚本执行结果: " + JSON.toJSONString(result));
            Thread.sleep(5000); // 每5秒执行一次
    }
}
